package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-10-17  10:30
 */
public class Circle extends Point{
    protected double r;
    public Circle(double x, double y, double r) {
        super(x, y);
        this.r = r;
    }
    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }
    public double circleArea() {
        double area = Math.PI * Math.pow(r,2);
        return area;
    }

}
